﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataTurnClient
{
    [Serializable]
    public class Result<T>
    {
        public bool Success { get; set; }
        [JsonProperty("msg")]
        public string Message { get; set; }
        public int Code { get; set; }
        [JsonProperty("data")]
        public T Data { get; set; }

        public Result() { }

        public dynamic Extra { get; set; }

        public Result(T data)
        {
            Data = data;
        }
    }
}
